package com.shy.springframework.test.event;

import com.shy.springframework.context.ApplicationListener;
import com.shy.springframework.context.event.ContextClosedEvent;

/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/9 16:44
 */
public class ApplicationClosedEventListener implements ApplicationListener<ContextClosedEvent> {
    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        System.out.println("上下文关闭: " + event.getApplicationContext());
    }
}
